<!--
 * @Descripttion: 
 * @Version: 
 * @Author: gaohj
 * @Date: 2022-12-22 14:12:35
 * @LastEditors: Please set LastEditors
 * @LastEditTime: 2022-12-22 14:15:47
-->
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        console.log(Boolean(NaN));
        console.log(Boolean(0));
        console.log(Boolean(0.0));
        console.log(Boolean(false));
        console.log(Boolean(''));
        console.log(Boolean(""));
        console.log(Boolean(``));
        console.log(Boolean(undefined));
        console.log(Boolean(null));

        // ''
        // ' ' => 这个不是空字符串 有一个空格
        // 空字符串是真空的 
        // 空格也是内容 ' ' 是非空字符串 


        console.log(Boolean(-1));
        console.log(Boolean(0.00000000001));
        console.log(Boolean('0'));



    </script>
</body>
</html>